<?php
/*******************************************************************************
 * $Date:: Jan 15, 2011 1:40:37 PM											   $
 * $Revision: 													               $
 * $Author:: Tuan Duong													       $
 * $Comment::															       $
 ******************************************************************************/ 

/**
 * Class description.
 * @package: Lua
 * @subpackage: Subpackage
 * @author: Tuan Duong <bacduong[at]gmail[dot]com>
 * @version: 
 */
 
class ErrorController extends Lua_Controller_Default {
    public function init() {
        parent::init();
        $this->view->disableLayout(false);
        $this->view->setNoRender(false);
    }
    public function errorAction()
    {
        $request = Lua_Request::getInstance();
        if ($request->isXmlHttpRequest()) {
            $this->view->disableLayout();
        }
        $error = $this->getParam('error');
        $this->view->assign('error', $error);
    }

    public function noAuthorizedAction()
    {
        
    }
}
